<div id="bckmain">
     <?php if ($this->uri->segment(3)): ?>
    <div id="blokdata">
        <div id="ucapan">

            <img src="<?php echo base_url() ?>image/konfirmasideposit.jpg" />

        </div>
    <?php endif ?>
        
    <div id="titlemerah"><p align="left">History Deposit</p></div>
        
    <table class="table table-hover table-bordered">
        <thead>
            <tr>
                <th>No</th>
                <th>Keterangan</th>
                <th>Credit</th>
                <th>Debit</th>
                <th>Status</th>
                <th>Date</th>
            </tr>
        </thead>
        <tbody>
            <?php $saldo = 0 ?>
            <?php foreach ($rows->result() as $deposit): ?>
                <tr>
                    <td><?php echo $i ?></td>
                    <?php if ($deposit->bank_name): ?>
                        <td>
                            Rekening Asal : <?php echo $deposit->costumer_bank ?><br />
                            Rekening Tujuan : <br /> <?php echo get_bank($deposit->bank_name) ?>
                        </td>
                    <?php else: ?>
                        <td><?php echo $deposit->keterangan ?></td>
                    <?php endif ?>
                        <td><?php echo get_money($deposit->deposit) ?></td>
                    <td><?php echo get_money($deposit->credit) ?></td>
                    <td><?php echo get_status_deposit($deposit->status) ?></td>
                    <td><?php echo get_tanggal_1($deposit->date) ?></td>

                    <?php $i++ ?>
                <?php endforeach ?>
            </tr>
        </tbody>

    </table>

</div>